﻿namespace QNUnit.Core.Info
{
    public class QUnitSubTest
    {
        #region Fields

        public bool HasPassed
        {
            get; 
            private set;
        }

        public string Message
        {
            get;
            private set;
        }

        public string Expected
        {
            get;
            private set;
        }

        public string Actual
        {
            get;
            private set;
        }

        #endregion

        #region Constructors

        public QUnitSubTest(string message, string expected, string actual)
        {
            Message = message;
            Expected = expected;
            Actual = actual;
            HasPassed = false;
        }

        public QUnitSubTest(string message, string expected) :
            this(message, expected, null)
        {
            HasPassed = true;
        }

        public QUnitSubTest(bool hasPassed, string message) :
            this(message, null, null)
        {
            HasPassed = hasPassed;
        }

        #endregion
    }
}